package com.karry.yl.domain.personnel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.karry.commons.base.SuperEntity;
import com.karry.yl.domain.elder.Elderly;

import java.util.List;

/**
 * 部门实体
 */
@TableName("department")
public class Department extends SuperEntity {

    private String name; //部门名称
    private String intro; //部门简介
    private Long orgId; //机构Id
    private Boolean isNursingDepartment;//是否护理部
    private  Long parentId;//父节点ID
    //当前护理部门下的老人
    @TableField(exist = false)
    private List<Elderly> elderlyList;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<Elderly> getElderlyList() {
        return elderlyList;
    }

    public void setElderlyList(List<Elderly> elderlyList) {
        this.elderlyList = elderlyList;
    }

    public Boolean getNursingDepartment() {
        return isNursingDepartment;
    }

    public void setNursingDepartment(Boolean nursingDepartment) {
        isNursingDepartment = nursingDepartment;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }
}
